physics_particle_group_count

Retrieve the number of particles currently active in a single group.

语法:

physics_particle_group_count(group)


`
参数 描述
group The group index (ID) of the particle group to count.


返回: Real(实数)


描述

This function will return the number of particles that are active in a single group. The group index (ID) is the value that is returned when you call the function physics_particle_group_end().


例如:

gp_num = physics_particle_group_count(group1);

The above code will get the number of particles used to make the group indexed in the variable "group1" and store the value in a variable.


上一页: Soft Body Particles
下一页: physics_particle_set_max_count
© Copyright YoYo Games Ltd. 2018 All Rights Reserved